import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * @Author：徐志荣
 * @Date：2023/5/22 10:58
 */

//多层框架/窗口定位
public class Test6 {
    public static void main(String[] args) {
        WebDriver webDriver = new ChromeDriver();
        webDriver.get("http://localhost:63342/_20230512_TestCode/src/main/html/test02.html?_ijt=t7j6bu0jo61akicjudhnmn7so2&_ij_reload=RELOAD_ON_SAVE");
       webDriver.switchTo().frame("f1");
        webDriver.findElement(By.cssSelector("body > div > div > a")).click();

    }
}
